import Vue from 'vue'
import Router from 'vue-router'

import tablepage from 'cs/public/tablepage'  //表格+分页+导出excel
import Container from 'cs/public/Container'   //首页布局
import editor from 'cs/public/editor'; //编译器
import  logo  from  "cs/logo/login";  //登录


/*首页
* */
import  homepage from  "cs/home/homepage";   //首页
import  achievement from  "cs/home/achievement";   //首页
import  userstatistics from  "cs/home/userstatistics";// tuye
/*
 * 用户管理
 */
import salesman  from  "cs/user/salesman";  //业务员
import agent  from  "cs/user/agent";  //代理
import user  from  "cs/user/user";  //业务员
import  userinfo from  "cs/user/userinfo"; //用户详情
/*商品管理
 * */
import  mygoods from  "cs/goods/mygoods";   //商品列表
import  goosdetails from  "cs/goods/goosdetails"; //商品详情
import  addgoogsparameter from  "cs/goods/addgoogsparameter"; //商品详情参数
import  addgoodsintroduce from  "cs/goods/addgoodsintroduce"; //商品详情参数
import  addgoods from  "cs/goods/addgoods";  //添加商品信息
import  addgoodsimg from  "cs/goods/addgoodsimg";//添加商品图片
import  classification from  "cs/goods/classification";//分类列表
import  goodsinfo from  "cs/goods/goodsinfo";//商品详情


/*广告位管理 advertisement
 * */
import  advertisement from  "cs/advertisement/advertisement"; //广告位管理
/*订单管理
 * */
import  alreadyorder from  "cs/order/alreadyorder"; //已处理订单
import  untreatedorder from  "cs/order/untreatedorder"; //未处理订单
/*提现管理
 * */
import  alreadytixian from  "cs/withdrawals/alreadytixian"; //已处理提现
import  untreatedtixian from  "cs/withdrawals/untreatedtixian"; //未处理提现
/*分红返利流水
 * */
import  rebatewater from  "cs/rebate/rebatewater"; //分红返利流水
//
/*公共管理 public
 * */
import  Superior from  "cs/public/Superior";//

import 'sc/UE/ueditor.config.js' //编译器  可修改配置路径
import 'sc/UE/ueditor.all.min.js' //编译器
import 'sc/UE/lang/zh-cn/zh-cn.js' //编译器
import 'sc/UE/ueditor.parse.min.js' //编译器

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'logo',
      component: logo
    },
    {
      path: '/editor',
      component: editor
    },
    {
      path: '/updateaddgoods',  //修改商品 1
      component: addgoods
    },
    {
      path: '/Updategoogsparameter',  //修改参数
      component: addgoogsparameter
    },
    {
      path: '/Updateaddgoodsintroduce',  //修改详情
      component: addgoodsintroduce
    },
    {
      path: '/Updateaddgoodsimg',  //修改图片
      component: addgoodsimg
    },


    {
      path: '/Container',
      component: Container,
      children: [{
        path: '/tablepage',  //测试模板
        component: tablepage
      },
        {
          path: '/userstatistics',  //图
          component: userstatistics
        },
        {
          path: '/homepage',  //首页
          component: homepage
        },
        {
          path: '/achievement',  //省级业绩
          component: achievement
        },

        {
          path: '/Superior',  //测试  分派省份
          component: Superior
        },
        {
          path: '/salesman',  //业务员
          component: salesman
        },
        {
          path: '/agent',  //代理
          component: agent
        },
        {
          path: '/user',  //用户
          component: user
        },
        {
          path: '/userinfo',  //用户详情
          component: userinfo
        },
        {
          path: '/mygoods',  //商品管理  我的商品
          component: mygoods
        },
        {
          path: '/goosdetails',  //商品管理  商品详情
          component: goosdetails
        },
        {
          path: '/addgoods',  //商品管理 添加商品
          component: addgoods
        },
        {
          path: '/addgoogsparameter',  //商品管理 添加商品参数
          component: addgoogsparameter
        },
        {
          path: '/addgoodsintroduce',  //商品管理 添加商品介绍
          component: addgoodsintroduce
        },
        {
          path: '/addgoodsimg',     //商品管理 添加商品图片
          component: addgoodsimg
        }, {
          path: '/goodsinfo',       //商品管理 商品详情
          component: goodsinfo
        },
        {
          path: '/classification',  //商品管理 分类
          component: classification
        },
        {
          path: '/advertisement',   //广告位管理
          component: advertisement
        },
        {
          path: '/alreadyorder',   //已处理订单
          component: alreadyorder
        },
        {
          path: '/untreatedorder',  //未处理订单
          component: untreatedorder
        },
        {
          path: '/alreadytixian',   //已处理提现
          component: alreadytixian
        },
        {
          path: '/untreatedtixian',  //未处理提现
          component: untreatedtixian
        },
        {
          path: '/rebatewater',      //分红返利流水
          component: rebatewater
        },

      ]
    },

  ]
})
